package com.anorak.betsy.retro;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;

public interface MyApiService {

    @GET(value = "MusicMoment.txt")
    Call<ResponseBody> sendData();


    @GET(value = "/api/musicmoment/?type=platform&version=1.1.0&uin=d1176772239c8c9f16d637a1d17b9a6b&m=a8397f54eb7e86c7dc0a6546885a2eb1")
    public Call<ResponseBody> QQINFOS();

    @GET(value = "/api/musicmoment/?type=url&version=1.1.0&key=qq_320_0009iijj2yhfmx|0.mp3&sign=7ad36ba9a71ff73662e3c99afe6567e8&uin=d1176772239c8c9f16d637a1d17b9a6b&urltype=play&m=a8397f54eb7e86c7dc0a6546885a2eb1")
    public Call<ResponseBody> QQINFOSTEST();

//    download
//    play
    @GET(value = "/api/musicmoment/?type=url&version=1.1.0&key=qq_4000_0009iijj2yhfmx|0.flac&sign=7deba24abc62caab71d261234b0249ab&uin=d1176772239c8c9f16d637a1d17b9a6b&urltype=download&m=a8397f54eb7e86c7dc0a6546885a2eb1")
    public Call<ResponseBody> QQINFOSTEST2();

    @GET(value = "/api/musicmoment/?type=url&version=1.1.0&key=qq_4000_001D51640M6ZeR|0.flac&sign=30842502eb16e169e8f8c2d29656e881&uin=d1176772239c8c9f16d637a1d17b9a6b&urltype=download&m=a8397f54eb7e86c7dc0a6546885a2eb1")
    public Call<ResponseBody> QQINFOSTEST3();

    @GET(value = "/api/musicmoment/?type=url&version=1.1.0&key=qq_320_001D51640M6ZeR|0.mp3&sign=772bb7647619b20196113809162600e7&uin=d1176772239c8c9f16d637a1d17b9a6b&urltype=download&m=a8397f54eb7e86c7dc0a6546885a2eb1")
    public Call<ResponseBody> QQINFOSTEST4();

    // qq_320_001Wenx12Arhbl|0.mp3 加密后是 6ecf95c95fea900d5d15ae6eea8fd914
    // qq_320_0009iijj2yhfmx|0.mp3 加密后是 7ad36ba9a71ff73662e3c99afe6567e8
    // qq_4000_0009iijj2yhfmx|0.flac 加密后是 7deba24abc62caab71d261234b0249ab

    /*
      public static String a(String string2, String string3, boolean bl) {
                  x9.j.f((String)"key", (Object)string2);
                  x9.j.f((String)"sign", (Object)string3);
                  String string4 = a;
                  String string5 = com.blankj.utilcode.util.a.a();
                  String string6 = h8.b$a.c();
                  String string7 = bl ? "play" : "download";
                  String string8 = h8.b$a.b();
                  StringBuilder stringBuilder = new StringBuilder();
                  stringBuilder.append(string4);
                  stringBuilder.append("?type=url&version=");
                  stringBuilder.append(string5);
                  stringBuilder.append("&key=");
                  stringBuilder.append(string2);
                  x.f(stringBuilder, "&sign=", string3, "&uin=", string6);
                  stringBuilder.append("&urltype=");
                  stringBuilder.append(string7);
                  stringBuilder.append("&m=");
                  stringBuilder.append(string8);
                  return stringBuilder.toString();
              }
     */


    /**
     *
     * 0000   45 00 01 5d 00 00 40 00 ff 06 00 00 00 00 00 00   E..]..@.........
     * 0010   00 00 00 00 00 00 00 00 db 35 11 7b b9 e9 c2 c5   .........5.{....
     * 0020   50 18 ff ff 00 00 00 00 47 45 54 20 2f 61 70 69   P.......GET /api
     * 0030   2f 6d 75 73 69 63 6d 6f 6d 65 6e 74 2f 3f 74 79   /musicmoment/?ty
     * 0040   70 65 3d 75 72 6c 26 76 65 72 73 69 6f 6e 3d 31   pe=url&version=1
     * 0050   2e 31 2e 30 26 6b 65 79 3d 71 71 5f 33 32 30 5f   .1.0&key=qq_320_
     * 0060   30 30 31 57 65 6e 78 31 32 41 72 68 62 6c 7c 30   001Wenx12Arhbl|0
     * 0070   2e 6d 70 33 26 73 69 67 6e 3d 36 65 63 66 39 35   .mp3&sign=6ecf95
     * 0080   63 39 35 66 65 61 39 30 30 64 35 64 31 35 61 65   c95fea900d5d15ae
     * 0090   36 65 65 61 38 66 64 39 31 34 26 75 69 6e 3d 64   6eea8fd914&uin=d
     * 00a0   31 31 37 36 37 37 32 32 33 39 63 38 63 39 66 31   1176772239c8c9f1
     * 00b0   36 64 36 33 37 61 31 64 31 37 62 39 61 36 62 26   6d637a1d17b9a6b&
     * 00c0   75 72 6c 74 79 70 65 3d 70 6c 61 79 26 6d 3d 61   urltype=play&m=a
     * 00d0   38 33 39 37 66 35 34 65 62 37 65 38 36 63 37 64   8397f54eb7e86c7d
     * 00e0   63 30 61 36 35 34 36 38 38 35 61 32 65 62 31 20   c0a6546885a2eb1
     * 00f0   48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20   HTTP/1.1..Host:
     * 0100   31 37 35 2e 31 37 38 2e 31 38 38 2e 31 36 39 0d   175.178.188.169.
     * 0110   0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 4b 65 65   .Connection: Kee
     * 0120   70 2d 41 6c 69 76 65 0d 0a 41 63 63 65 70 74 2d   p-Alive..Accept-
     * 0130   45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70 0d 0a   Encoding: gzip..
     * 0140   55 73 65 72 2d 41 67 65 6e 74 3a 20 6f 6b 68 74   User-Agent: okht
     * 0150   74 70 2f 34 2e 31 31 2e 30 0d 0a 0d 0a            tp/4.11.0....
     */

}
